package com.hrm.service;

import java.util.List;

import com.hrm.entity.Action;
import com.hrm.entity.Menu;
import com.hrm.util.Page;

public interface MenuService {
	
	public List<Menu> getMenus(Page page);
	public List<Menu> getMenus();
	public Menu getMenuById(long id);
	public Action getActionById(long id);
	public int addMenu(Menu menu);
	public int addAction(Action action);
	public int updateMenu(Menu menu);
	public int updateAction(Action action);
	public int hideMenuById(long id);
	public int showMenuById(long id);
	public int deleteActionById(long id);
	public int deleteMenuById(long id);
	List<Menu> getMenusByRoleId(long roleId);
}
